const http = require('../../utils/http');

function getSearchMusic(keyword, pageindex, callbackcount, callback) {

    const body = {
        openid: keyword,
    };
    http._post("/mini/getPoints/" + pageindex + '/' + callbackcount, body).then(res => {
        if (res.code == 200) {
            // console.log(res.result);
            callback(res.result);
        }

    }).catch(e => {
        console.log(e)
    });

}

module.exports = {
    getSearchMusic: getSearchMusic
}